package com.lingchen.service.impl;

import com.lingchen.dao.CollectDao;
import com.lingchen.dao.ErrorDao;
import com.lingchen.entity.Error;
import com.lingchen.service.ErrorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author    lingchen
 * Email     838878458@qq.com
 * Time      2018/4/6
 * Function  错题集
 */
@Service
public class ErrorServiceImpl implements ErrorService {
    @Autowired
    private ErrorDao errorDao;

    public int insertError(Error... errors) {
        return errorDao.insertError(errors);
    }

    public List<Error> selectError(long userName, String courseId) {
        return errorDao.selectError(userName, courseId);
    }
}
